package com.tbs.parkingsaleapp.UI.Adapters.Sorters;

import com.tbs.parkingsaleapp.Http.JsonData.ParkResult;

import java.util.Comparator;

public class DownPriceSorter implements Comparator<ParkResult> {
    @Override
    public int compare(ParkResult o1, ParkResult o2) {
        return (o1.getPark().getPrice()-o2.getPark().getPrice())>=0?-1:1;
    }
}
